﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="VoteTemplate.aspx.cs" Inherits="Manage_Cms_VoteTemplate" %>

<html>
<head>
    <!--#include file="../js/html_head.inc"-->
    <link rel="stylesheet" type="text/css" href="../Themes/<%=ManageHelper.GetTheme()%>/style.css" />

    <script type="text/javascript">
        function PageLoad()
        {
            document.getElementById("txtTemplete").value ='<form action="/?act=save"/ method="/post"/>'
            +'<div class="/column"/>'
          +'<div class="/columntitle"/>投票</div>'
          +'<table cellspacing="/0"/ cellpadding="/0"/ rules="/all"/ align="/center"/ border="/0"/ id="/MyDataGrid"/  style="/border-width: 0px; width: 100%; border-collapse: collapse;"/>'
          +'<tr class="/summary-title"/ style="/height: 25px"/ align="/left"/>'
          +'<td style="/width: 50px;"/ align="/center"/></td>'
          +'<td style="/width: 100px"/ align="/center"/>'
          +'标题</td>'
          +'<td style="/width: 400px;"/></td>'
          +'</tr>'
          +'<tr><td><input id="submit" type="submit" value="投票" /></td></tr>'
          +'</table></div></form>';
          
        }
        
        function CopyData()
        {
            if (document.getElementById("txtTemplete").focus()!=-1 && document.selection.createRange().text !="" )
            {
                window.clipboardData.setData('text', document.selection.createRange().text);
                alert('复制成功!');
            return true;
            }else{
                alert('请选择您要复制的内容！');
                return false;
            }
        }
    </script>

</head>
<body onload="PageLoad();">
    <div class="mycolumn" style="border: 0px">
        <form id="myForm" name="myForm" method="post" action="?">
            <table cellpadding="2" width="98%" align="center">
                <tr>
                    <td align="left" width="100">
                        模板内容:</td>
                    <td align="left">
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        <div class="tips">
                            <textarea name="txtTemplete" id="txtTemplete" rows="5" style="width: 400px"  cols="25">
                           
                            </textarea></div>
                    </td>
                </tr>
                <tr>
                    <td colspan="2" align="center" class="tdbutton">
                        <input type="button" value="复 制" onclick="CopyData();" />&nbsp;&nbsp;
                        <input type="button" value="取 消" onclick="window.parent.ymPrompt.doHandler('close');" />
                    </td>
                </tr>
            </table>
        </form>
    </div>
</body>
</html>
